/**
 * Created by Administrator on 2017/3/13.
 */
var is_authenticated = function () {
    $.ajax({
        type: "post",
        url: "/auth/login/isAuthenticated",
        dataType: "json",
        success: function (data) {

            //如果未授权则跳转的登录界面
            if (data.code != "0000") {
                // alert(data.code);
                window.location.href = "/pages/reglog/login.html";
            }
        },
        error: function (xhr, type) {
            alert("error");
            console.log(xhr);
        }
    });
}
